<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    class Person {
        say() {
            console.log('Person')
        }
    }

    class Teacher extends Person {
        say() {
            super.say();
            console.log('Teacher')
        }
    }

    new Teacher().say()
</script>
</body>
</html>
